@include("system::admin.layouts._header")
<body>
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label">名字</label>
            <div class="layui-input-block">
                <input type="text" name="first_name" class="layui-input" value="{{$data->first_name}}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">姓氏</label>
            <div class="layui-input-block">
                <input type="text" name="last_name" class="layui-input" value="{{$data->last_name}}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">邮箱地址</label>
            <div class="layui-input-block">
                <input type="text" name="email" class="layui-input" placeholder="请输入邮箱" value="{{$data->email}}">
                <tip>填写邮箱。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-block">
                <input type="text" name="phone" class="layui-input" placeholder="请输入手机号码" value="{{$data->phone}}">
                <tip>填写手机号码。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">主题</label>
            <div class="layui-input-block">
                <input type="text" name="subject" class="layui-input" placeholder="请输入主题" value="{{$data->subject}}">
                <tip>填写主题。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">内容</label>
            <div class="layui-input-block">
                <textarea name="content" class="layui-textarea" placeholder="请输入内容">{{$data->content}}</textarea>
                <tip>填写内容。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" lay-skin="primary" value="1" @if($data->status == '1') checked @endif title="已处理">
                <input type="radio" name="status" lay-skin="primary" value="0" @if($data->status == '0') checked @endif title="待处理">
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <input type="hidden" name="id" value="{{$data->id}}">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
</body>
</html>
